export const useUserStore = defineStore('user', () => {
    // state
    const name = ref('zhangsan')
    const age = ref(22)

    // getters
    const info = computed(() => `${name.value} is ${age.value}岁`)

    // actions
    const grow = function (){
        age.value++
    }

    return { name, age, info ,grow}

})